.btn-pressed {
  background-color: #d94f00;
  color: white;

  &:hover {
    background-color: #d94f00;
    color: white;
  }
}

.fa-spinner {
  font-size: 2em;
}

.grid-stack-item-content {
  text-align: center;
  border-style: solid;
  border-color: rgba(25, 25, 25, 0.72);
  border-width: 2px;
  background-color: #1a262d;
  border-radius: 0.5em 0.5em 0.5em 0.5em;
}

.widget-error {
  margin: 50px;
  color: #721c24;
}

.widget-content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 1px;
  cursor: grab;
}

.widget-header {
  margin-top: 0.5em;
  margin-left: 1em;
  margin-right: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-spinner {
  margin-top: 20px;
}

.fa-stack.small {
  font-size: 0.5em;
}

.close-handle {
  vertical-align: middle;
  text-align: right;
  cursor: pointer;

  > i {
    font-size: 0.7em;
  }
}

.panel-divider {
  width: 100%;
  text-align: center;
  height: 8px;
  margin-bottom: 10px;
}

table {
  table-layout: fixed;
}

td {
  word-break: break-all;
}

.line {
  display: inline-block;
  height: 1px;
  width: 70%;
  background: #d94f00;
  margin: 5px;
}

.canvas-container-noaspectratio {
  position: relative;
}

.canvas-container {
  position: relative;
}

.canvas-container > canvas {
  /* ChartJS v4 workaround: https://github.com/chartjs/Chart.js/issues/11005 */
  width: 100% !important;
  height: 100% !important;
}
.cpu-canvas-container {
  display: flex;
  flex-direction: column;
}

.smoothie-container {
  width: 100%;
}

.smoothie-chart-tooltip {
  z-index: 1;

  /* necessary to force to foreground */
  background: rgba(50, 50, 50, 0.9);
  padding-left: 15px;
  padding-right: 15px;
  color: white;
  font-size: 13px;
  border-radius: 0.5em 0.5em 0.5em 0.5em;
  pointer-events: none;
}

.flex-container {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.gateway-info {
  margin: 5px;
  padding: 5px;
  font-size: 13px;
}

.gateway-detail-container {
  display: none;
  margin: 5px;
}

.interface-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  height: 100%;
}

.nowrap {
  flex-wrap: nowrap;
}

.gateway-graph {
  display: none;
}

.flex-container > .gateway-graph {
  font-size: 13px;
}

.vertical-center-row {
  height: 100%;
  display: inline;
}

.interfaces-info {
  margin: 5px;
  font-size: 13px;
}

.interface-descr {
  margin-left: 10px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: underline;
}

.interfaces-detail-container {
  margin: 5px;
  display: none;
}

.d-flex {
  display: flex;

  > {
    .justify-content-start {
      justify-content: start;
    }

    .justify-content-end {
      justify-content: end;
    }
  }
}

#chartjs-toolip {
  z-index: 20;
}

/* CPU widget */

.cpu-type {
  margin-bottom: 10px;
  margin-top: 10px;
}

/* ----- */

/* Custom flex table */

div {
  box-sizing: border-box;
}

.flextable-container {
  display: block;
  margin: 2em auto;
  width: 95%;
  max-width: 1200px;
}

.flextable-header {
  display: flex;
  flex-flow: row wrap;
  transition: 0.5s;
  padding: 0.5em 0.5em;
  border-top: solid 1px rgba(217, 79, 0, 0.15);
}

.flextable-row {
  display: flex;
  flex-flow: row wrap;
  transition: 0.5s;
  padding: 0.5em 0.5em;
  border-top: solid 1px rgba(255, 255, 255, 0.06);
  align-items: center;
}

.flextable-header .flex-cell {
  font-weight: bold;
}

.flex-cell {
  text-align: left;
  word-break: break-word;
}

.column {
  display: flex;
  flex-flow: column wrap;
  width: 50%;
  padding: 0;

  .flex-cell {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    padding: 0;
    border: 0;
    border-top: rgb(59, 59, 59);
  }
}

.flex-subcell {
  width: 100%;
  text-align: left;
}

.column .flex-cell:not(:last-child) {
  border-bottom: none !important;
}

/* ----- */

/* CSS grid responsive table */

.grid-header-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  background-color: #f7e2d6;

  /* fade-in color, transitions to transparent */
  border-top: 1px solid #f7e2d6;
  transition: 0.5s;
  opacity: 0.4;
}

.grid-header {
  border-top: 1px solid #f7e2d6;
  font-weight: bold;
}

.grid-item {
  border: 1 px solid #ccc;
  padding: 4px;
  text-align: center;
}

/* ----- */

:root {
  --chart-js-background-color:#bac3ca;
  --chart-js-border-color:#bac3ca;
  --chart-js-font-color:#bac3ca;
}
